package com.andaily.domain.user;

import com.andaily.domain.thing.ThingStatus;

import java.io.Serializable;

/**
 * It is a component of <code>UserSetting</code>
 *
 * @author Shengzhao Li
 */
public class ThingSetting implements Serializable {

    //是否自动开始事情(仅限有开始时间的事情)
    private boolean autoStartThing = false;
    //创建事情后的默认状态为:  新建或进行中
    private ThingStatus defaultCreatedStatus = ThingStatus.CREATED;

    /**
     * Default constructor
     */
    public ThingSetting() {
    }

    public ThingSetting(boolean autoStartThing, ThingStatus defaultCreatedStatus) {
        this.autoStartThing = autoStartThing;
        this.defaultCreatedStatus = defaultCreatedStatus;
    }

    public boolean autoStartThing() {
        return autoStartThing;
    }

    public ThingStatus defaultCreatedStatus() {
        return defaultCreatedStatus;
    }

    public void updateAutoStartThing(boolean autoStartThing) {
        this.autoStartThing = autoStartThing;
    }
}
